/*!
 * \file RdWrLock.cpp
 * \brief Read write lock.
 * \author Nus
 * \date 2008/03/15 09:53
 */

#include "RdWrLock.h"

// Default constructor.
RdWrLock::RdWrLock()
{
  mStatus = pthread_rwlock_init(&mRdWrLock, NULL);
}

// Default destructor.
RdWrLock::~RdWrLock()
{
  if(mStatus == 0)
    pthread_rwlock_destroy(&mRdWrLock);
}
